import App from './App';

import { createSSRApp } from 'vue';

import * as http from './utils/http.js';
import * as utils from './utils/utils.js';

export function createApp() {
	const app = createSSRApp(App)
	
	// http request
	app.config.globalProperties.$request = http.request;
		
	// utils
	app.config.globalProperties.$showToast = utils.showToast;
	
	return {
		app
	}
}